package com.kaifamiao.uploader.dao;

import com.kaifamiao.uploader.entity.Chunk;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ChunkRepository extends JpaRepository<Chunk, Integer> {

    List<Chunk> findAllByIdentifierOrderByChunkIndex(String identifier);

    int removeByIdentifier(String identifier);
}